﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    public  class SurveyBLL
    {
        public SurveyDAO dao = new SurveyDAO();
        public bool Add(Survey sur)
        {
            return dao.Add(sur);
        }
        public void Delete(SurveyDAO sur)
        {
            dao.Delete(sur);
        }
        public void Delete(int id)
        {
            dao.Delete(id);
        }
         #region 查询所有list
        /// <summary>
        /// 查询所有list
        /// </summary>
        /// <param name="page"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        public IList<Survey> GetAll(int page, int pagesize)
        {
            return  dao.GetAll(page, pagesize);
        }
        #endregion

        #region 查询所有调查总数
        /// <summary>
        /// 查询所有调查总数
        /// </summary>
        /// <returns></returns>
        public int GetAll()
        {
            return dao.GetAll();
        }
        #endregion
    }
}
